[MATH]Project an axis to a plane

Posted by Robert on Stack Overflow See other posts from Stack Overflow or by Robert
Published on 2010-03-25T15:02:39Z Indexed on 2010/03/25 15:03 UTC
Read the original article Hit count: 176

Filed under:

how do i project the X axis to a plane if the plane is defined by three points? see pic here: http://129.25.16.135:2080/v6.5/books/usb/graphics/iconventions-local-surfaces.png

The default local 1-direction is the projection of the global x-axis onto the surface. If the global x-axis is within 0.1° of being normal to the surface, the local 1-direction is the projection of the global z-axis onto the surface.

let's suppose that these points are: t1 = [-0.362879991531372, 0.357021987438202, -0.373737007379532]

t2 = [-0.383525013923645, 0.371621012687683, -0.383549988269806]

t3 = [-0.383534014225006, 0.34629300236702, -0.38544899225235]

is the vector [0.78280971952246, -0.0307519963686645, 0.411184845614438] correct answer in this case? i've calculated the angle between the surf and x (1,0,0) is ~28°.

and can you give the entire procedure for the calculation, because i'm just puzzled.

© Stack Overflow or respective owner

Related posts about math